package com.scalesoft.artsync.modelimpl.submission;

import java.util.HashMap;
import java.util.UUID;

import com.scalesoft.artsync.model.CONTENTLEVEL;
import com.scalesoft.artsync.model.submission.Submission;

public abstract class SubmissionImpl implements Submission {

	private String id;
	private CONTENTLEVEL contentLevel;
	private String tags;
	private String title;
	private String description;
	private HashMap<String, String> idForService = new HashMap<String, String>();
	private Boolean selected;
	
	public SubmissionImpl() {
		id = UUID.randomUUID().toString();
		selected = new Boolean(true);
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public String getIdForService(String servicename) {
		return idForService.get(servicename);
	}

	@Override
	public void setIdForService(String servicename, String serviceid) {
		idForService.put(servicename, serviceid);
	}

	@Override
	public CONTENTLEVEL getContentLevel() {
		return contentLevel;
	}

	@Override
	public String getTags() {
		return tags;
	}

	@Override
	public String getTitle() {
		return title;
	}

	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public void setContentLevel(CONTENTLEVEL contentLevel) {
		this.contentLevel = contentLevel;
	}

	@Override
	public void setTags(String tags) {
		this.tags = tags;
	}

	@Override
	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public void setDescription(String description) {
		this.description = description;
	}

	public Boolean isSelected() {
		return selected;
	}
	public void setSelected(Boolean selected) {
		this.selected = selected;
	}

}
